﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Project.Models
{
    /// <summary>
    /// 价格模板
    /// </summary>
    public class PriceTemplate:BaseModel
    {
        [StringLength(30)]
        [Required]
        public string Title { get; set; }

        [Required]
        public Guid UserId { get; set; }

        public bool IsDefault { get; set; }

        public DateTime UpdateAt { get; set; }

        [ForeignKey(nameof(UserId))]
        public WebUser User { get; set; }

        public virtual List<PriceTemplateItem> Items { get; set; }
    }
}
